<template>
	<view class="bgs dis dis5 dis1 dis2">
		<view class="bgsTop dis dis5 dis1 dis2">
			<image :src="queshengpng" mode="aspectFit" class="que"></image>
			<text class="text1Bgs" v-if="text1">{{text1}}</text>
			<text class="text2Bgs"  v-if="text2">{{text2}}</text>
		</view>
		<view class="class1_1Btn contenr" @click="goUrl"  v-if="text3">{{text3}}</view>
	</view>
</template>

<script>
	import config from '@/common/js/config.js';
	export default {
		props:{
			text1:{//你还没有体检记录
				type:String
			},
			text2:{//快去体检吧
				type:String
			},
			text3:{//立刻体检
				type:String
			}
		},
		data() {
			return {
				queshengpng:`${config.imgUrl}quesheng.png`
			};
		},
		methods:{
			goUrl(){
				let urls ='';
				if(this.text1.indexOf('体检') !=-1){
					urls='/second/me/everyday/everyday'
				}else{
					urls ='/pages/appraisal/appraisal'
				}
				console.log(urls)
				uni.reLaunch({
					url:urls
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import "../common/css/flex.css";
	@import "../common/css/index.scss";
	.bgs {
		width: 100%;
		height: 1200upx;
	
		// border: 1px solid red;
		.bgsTop {
			width: 100%;
	
			.que {
				width: 470upx;
				height: 195upx;
			}
	
			.text1Bgs {
				font-size: 32upx;
				font-family: $typeface;
				font-weight: 500;
				color: #333333;
				margin-top: 42upx;
				margin-bottom: 6upx;
			}
	
			.text2Bgs {
				font-size: 28upx;
				font-family: $typeface1;
				font-weight: 400;
				color: #999999;
			}
		}
	
		.class1_1Btn {
			width: 426upx;
			height: 88upx;
			background: #FFD344;
			border-radius: 44upx;
			font-size: 32upx;
			font-family: $typeface;
			font-weight: 500;
			color: #333333;
			margin-top: 61upx;
		}
	}
</style>
